module.exports = {
  userFormateError: {
    code: '10001',
    message: '用户名或密码不能为空',
    result: '',
  },
  userAlreadyExited: {
    code: '10002',
    message: '用户已经存在',
    result: '',
  },
  userRegisterError: {
    code: '10003',
    message: '用户注册错误',
    result: '',
  },
  userDoesNotExist: {
    code: '10004',
    message: '用户不存在',
    result: '',
  },
  userLoginError: {
    code: '10005',
    message: '用户登录失败',
    result: '',
  },
  invalidPassword: {
    code: '10006',
    message: '密码不匹配',
    result: '',
  },
  tokenExpiredError: {
    code: '10101',
    message: 'token已过期',
    result: '',
  },
  invalidToken: {
    code: '10102',
    message: '无效的token',
    result: '',
  },
  hasNotAdminPermission: {
    code: '10103',
    message: '没有管理员权限',
    result: '',
  },
  menuFormateError: {
    code: '10001',
    message: '菜单名不能为空',
    result: '',
  },
  menuIdFormateError: {
    code: '10007',
    message: '菜单Id不能为空',
    result: '',
  },
  menuleDoesNotExist: {
    code: '100030',
    message: '菜单不存在',
    result: '',
  },
  menuAlreadyExited: {
    code: '10002',
    message: '菜单已经存在,请勿重复添加',
    result: '',
  },
  menuInsertError: {
    code: '10003',
    message: '获取菜单信息错误',
    result: '',
  },
  fileUploadError: {
    code: '10201',
    message: '商品图片上传失败',
    result: '',
  },
  unSupportedFileType: {
    code: '10202',
    message: '不支持的文件格式',
    result: '',
  },
  // 文章
  articleFormateError: {
    code: '20001',
    message: '文章名不能为空',
    result: '',
  },
  articleIdFormateError: {
    code: '20002',
    message: '文章Id不能为空',
    result: '',
  },
  articleDoesNotExist: {
    code: '20003',
    message: '文章不存在',
    result: '',
  },
  articleAlreadyExited: {
    code: '20004',
    message: '文章已经存在,请勿重复添加',
    result: '',
  },
  articleInsertError: {
    code: '20005',
    message: '获取文章信息错误',
    result: '',
  },
  // 标签
  tagFormateError: {
    code: '20001',
    message: '标签名不能为空',
    result: '',
  },
  tagIdFormateError: {
    code: '20002',
    message: '标签Id不能为空',
    result: '',
  },
  tagDoesNotExist: {
    code: '20003',
    message: '标签不存在',
    result: '',
  },
  tagAlreadyExited: {
    code: '20004',
    message: '标签已经存在,请勿重复添加',
    result: '',
  },
  tagInsertError: {
    code: '20005',
    message: '获取标签信息错误',
    result: '',
  },
  // 类型
  typeFormateError: {
    code: '20001',
    message: '类型名不能为空',
    result: '',
  },
  typeIdFormateError: {
    code: '20002',
    message: '类型Id不能为空',
    result: '',
  },
  typeDoesNotExist: {
    code: '20003',
    message: '类型不存在',
    result: '',
  },
  typeAlreadyExited: {
    code: '20004',
    message: '类型已经存在,请勿重复添加',
    result: '',
  },
  typeInsertError: {
    code: '20005',
    message: '获取类型信息错误',
    result: '',
  },
}
